<% (@num_workers || 1).times do |num| %>
check process resque_<%= @app_name %>_<%= num %>
  with pidfile /var/run/engineyard/resque/<%= @app_name %>/resque_<%= num %>.pid
  start program = "/engineyard/bin/resque <%= @app_name %> start <%= @rails_env %> resque_<%= num %>.conf" with timeout 90 seconds
  stop program = "/engineyard/bin/resque <%= @app_name %> stop <%= @rails_env %> resque_<%= num %>.conf" with timeout 90 seconds
  if totalmem is greater than 300 MB for 2 cycles then restart # eating up memory?
  group <%= @app_name %>_resque
<% end %>
